package cc.laop.dao.system;

import cc.laop.dao.BaseMapper;
import cc.laop.entity.system.User;

import java.util.Map;


public interface UserMapper extends BaseMapper<User> {

    public User selectByNameOrEmail(User user);

    /**
     * 添加用户角色
     *
     * @param map
     * @return
     */
    public int insertUserRole(Map<String, Integer> map);

    /**
     * 删除用户角色
     *
     * @param userid
     * @return
     */
    public int deleteUserRole(int userid);
}
